import "pkl:test"

class Person {}

res1 = test.catch(() -> (5) { when (false) { [0] = 0 }; ["pigeon"] = true })
res2 = test.catch(() -> new List { when (false) { [0] = 0 }; ["pigeon"] = true })
res3 = test.catch(() -> (List()) { when (false) { [0] = 0 }; ["pigeon"] = true })
res4 = test.catch(() -> new Person { when (false) { [0] = 0 }; ["pigeon"] = true })
res5 = test.catch(() -> new ValueRenderer { when (false) { [0] = 0 }; ["pigeon"] = true })
res6 = test.catch(() -> new Listing { when (false) { [0] = 0 }; [0] = true })

res7 = test.catch(() -> (5) { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res8 = test.catch(() -> new List { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res9 = test.catch(() -> (List()) { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res10 = test.catch(() -> new Person { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res11 = test.catch(() -> new ValueRenderer { when (false) { [0] = 0 }; ["fr" + "ed"] = true })
res12 = test.catch(() -> new Listing { when (false) { [0] = 0 }; [0 + 0] = true })
